﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_GuaRule
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_GuaRule
   {
        private int? _Guarule_id;
        private int? _Property_id;
        private string _GType;
        private string _Grule;
        private string _GDescription;
        private int? _Gnumber;
        private string _Gperiod;
        private int? _languagetype;
        private DateTime? _updatetime;
        private int? _grulelevel;
        private string _grulename;


        public HCRS_GuaRule()
        {}


        public HCRS_GuaRule(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["Guarule_id"].ToString()!="")_Guarule_id=Convert.ToInt32(dr["Guarule_id"].ToString());
                if(dr["Property_id"].ToString()!="")_Property_id=Convert.ToInt32(dr["Property_id"].ToString());
                _GType=dr["GType"].ToString();
                _Grule=dr["Grule"].ToString();
                _GDescription=dr["GDescription"].ToString();
                if(dr["Gnumber"].ToString()!="")_Gnumber=Convert.ToInt32(dr["Gnumber"].ToString());
                _Gperiod=dr["Gperiod"].ToString();
                if(dr["languagetype"].ToString()!="")_languagetype=Convert.ToInt32(dr["languagetype"].ToString());
                if(dr["updatetime"].ToString()!="")_updatetime=Convert.ToDateTime(dr["updatetime"].ToString());
                if (dr["grulelevel"].ToString() != "") _grulelevel = Convert.ToInt32(dr["grulelevel"].ToString());
                _grulename = dr["grulename"].ToString();
                if (dr["userid"].ToString() != "") userid = Convert.ToInt32(dr["userid"].ToString());
            }
        }



        #region 公共属性 


         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Guarule_id", "pk")]
         public int? id
         {
             get { return _Guarule_id; }
             set { _Guarule_id = value; }
         }

         public int? userid
         {
             get;
             set;
         }

         public int? Grulelevel
         {
             get { return _grulelevel; }
             set { _grulelevel = value; }
         }

         public string Grulename
         {
             get { return _grulename; }
             set { _grulename = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Property_id")]
         public int? Property_id
         {
             get { return _Property_id; }
             set { _Property_id = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("GType")]
         public string GType
         {
             get { return _GType; }
             set { _GType = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Grule")]
         public string Grule
         {
             get { return _Grule; }
             set { _Grule = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("GDescription")]
         public string GDescription
         {
             get { return _GDescription; }
             set { _GDescription = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Gnumber")]
         public int? Gnumber
         {
             get { return _Gnumber; }
             set { _Gnumber = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("Gperiod")]
         public string Gperiod
         {
             get { return _Gperiod; }
             set { _Gperiod = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("languagetype")]
         public int? languagetype
         {
             get { return _languagetype; }
             set { _languagetype = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("updatetime")]
         public DateTime? updatetime
         {
             get { return _updatetime; }
             set { _updatetime = value; }
         }



        #endregion


    }
    #endregion
}
